home *** CD-ROM | disk | FTP | other *** search
/ ShareWare OnLine 2 / ShareWare OnLine Volume 2 (CMS Software)(1993).iso / bbs_soft / qb276a.zip / INSTALL.BAT < prev    next >
DOS Batch File  |  1993-04-25  |  5KB  |  137 lines

  1. ECHO OFF
  2. CLS
  3. TYPE README.1ST
  4. PAUSE
  5. CLS
  6. ECHO OFF
  7. ECHO This Auto-install process will install QuickBBS into a directory
  8. ECHO called QUICKBBS on drive %2: (%2:\QUICKBBS). It will create
  9. ECHO subdirectories and install configuration files for an operational
  10. ECHO system. If this is not correct, press CTRL-C to abort the
  11. ECHO installation. Otherwise, press any key to continue.
  12. PAUSE > NUL
  13.  
  14. IF %1==E GOTO EXE
  15. IF %1==e GOTO EXE
  16. IF %1==O GOTO OVR
  17. IF %1==o GOTO OVR
  18.  
  19. ECHO You did not specify "O" or "E" on your command line. You must
  20. ECHO specify an E if you would like to have the Executable version
  21. ECHO installed, or an O if you would like to have the Overlay version
  22. ECHO installed. Please try again.
  23. PAUSE
  24. GOTO END
  25.  
  26. :EXE
  27. @ECHO OFF
  28. ECHO The Executable version will be installed.
  29. GOTO CONT
  30.  
  31. :OVR
  32. @ECHO OFF
  33. ECHO The Overlay version will be installed.
  34. GOTO CONT
  35.  
  36. :CONT
  37. echo off
  38. IF NOT EXIST QBBS276T.ZIP GOTO ERROR1
  39. IF NOT EXIST QB276U.ZIP GOTO ERROR1
  40. IF NOT EXIST QBBS276D.ZIP GOTO ERROR1
  41. IF %1==E IF NOT EXIST QB276E.ZIP GOTO ERROR1
  42. IF %1==e IF NOT EXIST QB276E.ZIP GOTO ERROR1
  43. IF %1==O IF NOT EXIST QB276O.ZIP GOTO ERROR1
  44. IF %1==o IF NOT EXIST QB276O.ZIP GOTO ERROR1
  45. GOTO CONT2
  46.  
  47. :ERROR1
  48. CLS
  49. ECHO The proper release files do not exist in this directory. You need
  50. ECHO to have QBBS276T.ZIP, QB276U.ZIP, QBBS276D.ZIP, and either
  51. ECHO QB276E.ZIP or QB276O.ZIP (whichever you specified on the
  52. ECHO command line) or both in order for the installation to proceed.
  53. PAUSE
  54. GOTO END
  55.  
  56. :CONT2
  57. ECHO Setting up system.... This will take a little while!
  58. MD %2:\QUICKBBS > NUL
  59. COPY ALT.COM %2:\QUICKBBS > NUL
  60. MD %2:\QUICKBBS\QUICKBBS > NUL
  61. COPY QB276*.* %2:\QUICKBBS\QUICKBBS > NUL
  62. COPY QBBS276*.* %2:\QUICKBBS\QUICKBBS > NUL
  63. PKUNZIP -D -O %2:\QUICKBBS\QUICKBBS\QB276%1.ZIP %2:\QUICKBBS > NUL
  64. IF ERRORLEVEL 1 GOTO ERROR2
  65. PKUNZIP -D -O %2:\QUICKBBS\QUICKBBS\QB276U.ZIP %2:\QUICKBBS > NUL
  66. IF ERRORLEVEL 1 GOTO ERROR2
  67. PKUNZIP -D -O %2:\QUICKBBS\QUICKBBS\QBBS276D.ZIP %2:\QUICKBBS > NUL
  68. IF ERRORLEVEL 1 GOTO ERROR2
  69. PKUNZIP -D -O %2:\QUICKBBS\QUICKBBS\QBBS276T.ZIP %2:\QUICKBBS > NUL
  70. IF ERRORLEVEL 1 GOTO ERROR2
  71.  
  72. %2:
  73. CD\QUICKBBS
  74. CLS
  75. ECHO Now I'll run QCONFIG. You'll need to enter the COM port to which your
  76. ECHO modem is attached. After QCONFIG begins press [G][M]. After entering your
  77. ECHO modem information, press [F10] to save it.  Then press [R] [R] to enter
  78. ECHO your name and the name of your system and press [F10] to save it.
  79. ECHO Finally, press [Q][S] to Quit and Save.
  80. PAUSE
  81.  
  82. ALT QUICKCFG.DAT "C:\" "%2:\" > NUL
  83. ALT QUICKCFG.DAT "c:\" "%2:\" > NUL
  84. ALT FILECFG.DAT "C:\" "%2:\" > NUL
  85. ALT FILECFG.DAT "c:\" "%2:\" > NUL
  86. QCONFIG
  87. CD MENUS
  88.  
  89. ECHO Updating files, please wait...
  90.  
  91. FOR %%m in (*.MNU) do ..\ALT %%m "c:\" "%2:\" > NUL
  92. FOR %%m in (*.MNU) do ..\ALT %%m "C:\" "%2:\" > NUL
  93.  
  94. CD ..
  95.  
  96.  
  97. ECHO Now you're ready to log on. I'll run QuickBBS in local mode so you
  98. ECHO can be the first user in your user log. After you complete the
  99. ECHO logon information, but while you're still online, press [ALT-S] and
  100. ECHO increase your security level to 32,000 so you'll always be the
  101. ECHO first user in the user log.
  102. PAUSE
  103.  
  104. QUICKBBS -L
  105.  
  106. ECHO That's it! You're ready to run your own BBS! Plug in your modem and
  107. ECHO type QUICKBBS[ENTER] when you're ready to start!
  108.  
  109. ECHO Good luck, and welcome from all of us at Pegasus Software!
  110. PAUSE
  111. GOTO END
  112.  
  113. :ERROR2
  114. CLS
  115. IF ERRORLEVEL 52 ECHO Unknown error
  116. IF ERRORLEVEL 51 IF NOT ERRORLEVEL 52 ECHO Unexpected End of File in ZIP File
  117. IF ERRORLEVEL 50 IF NOT ERRORLEVEL 51 ECHO Disk Full
  118. IF ERRORLEVEL 12 IF NOT ERRORLEVEL 50 ECHO Unknown error
  119. IF ERRORLEVEL 11 IF NOT ERRORLEVEL 12 ECHO No files found to extract.
  120. IF ERRORLEVEL 10 IF NOT ERRORLEVEL 11 ECHO Bad or Illegal Parameters Specified
  121. IF ERRORLEVEL 9 IF NOT ERRORLEVEL 10 ECHO File not found; no ZIP files found.
  122. IF ERRORLEVEL 4 IF NOT ERRORLEVEL 9 ECHO Not enough memory
  123. IF ERRORLEVEL 2 IF NOT ERRORLEVEL 4 ECHO Error in ZIP file
  124. IF ERRORLEVEL 1 IF NOT ERRORLEVEL 2 ECHO Warning error, such as failed CRC check
  125. ECHO .
  126. ECHO The above error resulted from the attempt to extract the QuickBBS files.
  127. ECHO Please check to make sure you have enough space to install your BBS on
  128. ECHO this drive. If you do, check the integrity of the distribution
  129. ECHO files by making sure the Pegasus Software Authenticity Verification
  130. ECHO seal is intact. Try again when you've corrected the problem.
  131. PAUSE
  132.  
  133. :END
  134. CLS
  135. ECHO Thanks for choosing QuickBBS!
  136.  
  137.